const express = require('express')
const app = express()
const moment = require('moment')
const bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({ extended: false }))
const cors = require('cors')
app.use(cors())
    // 导入路由模块
const router = require('./router.js')
    // 注册路由模块
app.use(router)
app.listen(5001, () => {
    console.log('api server running at http://127.0.0.1:5001')
})